Mockito Any() Vs. Isa() ^^^^^ **Definition:** * Misuse of mockito’s matchers classes to type checks **Code Example:** .. code-block:: java verify(async).execute(any(AddOrganizationAction.class), any(AsyncCallback.class)); // wrong pass verify(async).execute(any(AddPersonToOrganizationAction.class), any(AsyncCallback.class)); .. code-block:: java verify(async).execute(isA(AddOrganizationAction.class), any(AsyncCallback.class)); **References:** .. admonition:: Quality attributes * :octicon:`file-code;1em` - Code Example * :octicon:`comment-discussion;1em` - Cause and Effect * :octicon:`graph;1em` - Frequency * :octicon:`sync;1em` - Refactoring * `Bad tests, good tests `_ :octicon:`file-code;1em` :octicon:`comment-discussion;1em` :octicon:`sync;1em`